home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK2.toast / Development Kits (Disc 2) / QuickDraw GX / Programming Stuff / GX Libraries / QDLibrary.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-31  |  1.4 KB  |  57 lines  |  [TEXT/MPS ]

  1.  
  2. /*
  3.     File:        QDLibrary.h
  4.     
  5.     Contains:    quickdraw library interfaces
  6.     
  7.     Written By:    Cary Clark, Michael Fairman, Robert Johnson, Keith McGreggor, Oliver Steele, David Van Brink
  8.     
  9.     Copyright:    ©1992-1995 by Apple Computer, Inc.  All rights reserved.
  10.     
  11.     Change History (most recent first):
  12.     
  13.          <1>      1/9/95    JD        First checked in.
  14.  
  15. */
  16.  
  17. #ifndef __QDLIBRARY__
  18. #define __QDLIBRARY__
  19.  
  20. #include <Icons.h>
  21. #include <Quickdraw.h>
  22. #include <GXTypes.h>
  23.  
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27.  
  28. /* for compatibility with old headers */
  29. #define qdLibraryIncludes
  30.  
  31. /* geometry conversions */
  32. gxPoint *ShortPointToFixed(const Point *, gxPoint *);
  33. Point *FixedPointToShort(const gxPoint *, Point *);
  34. gxRectangle *ShortRectToFixed(const Rect *, gxRectangle *);
  35. Rect *FixedRectToShort(const gxRectangle *, Rect *);
  36.  
  37. /* gxColor conversions */
  38. gxColorSet CTableToColorSet(const CTabHandle);
  39. CTabHandle ColorSetToCTable(const gxColorSet);
  40.  
  41. /* pixmap/gxBitmap conversions */
  42. gxBitmap *ConvertFromQDBitmap(const BitMap *, gxBitmap *);
  43. BitMap *ConvertToQDBitmap(const gxBitmap *, BitMap *);
  44. gxShape BitMapToShape(const BitMap *);
  45. gxShape PixMapToShape(const PixMapHandle);
  46. gxShape GetPixMapShape(short resourceID);
  47. gxShape CICNToMask(CIconHandle iconH);
  48. gxShape CICNToShape(CIconHandle iconH);
  49. gxShape GetCICNMask(long resourceID);
  50. gxShape GetCICNShape(long resourceID);
  51.  
  52. #ifdef __cplusplus
  53. }
  54. #endif
  55.  
  56. #endif /* __QDLIBRARY__ */
  57.